/* === Login Page Custom Styles === */

body.login {
    background: #f5f7fa;
    min-height: 100vh;
    font-family: 'Inter', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* ضمان أن كل شيء في منتصف الصفحة فعلياً */
body.login > .login-logo,
body.login > .am-login-form-wrapper,
body.login > .am-sendpass-form-wrapper {
    margin-left: auto;
    margin-right: auto;
}

/* في حال وجود div.wrapper أو .container */
body.login .wrapper,
body.login .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}


.content-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
.am-login-form-form fieldset {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
body.login .site-header {
    display: none !important;
}
/* Center the login form */
.am-login-form-wrapper,
.am-sendpass-form-wrapper {
    max-width: 380px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 32px rgba(80,110,255,0.08), 0 2px 8px rgba(0,0,0,0.03);
    position: relative;
}

@media (max-width: 500px) {
    .am-login-form-wrapper,
    .am-sendpass-form-wrapper {
        max-width: 98vw;
        padding: 18px 5vw 18px 5vw;
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(80,110,255,0.08);
    }
}

/* Hide the header/logo if needed */
body.login .site-header,
body.login .site-brand {
    display: none !important;
}

.login-logo {
    text-align: center;
    margin-bottom: 18px;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
}

/* إزالة أي هوامش علوية أو سفلية غير ضرورية من الروابط */

.main-content {
    align-content: center;
}

.am-signup-link {
    margin-top: 18px;
    margin-bottom: 0;
    text-align: center;
}

.login-logo img {
    width: 200px;
    height: 88px;
    object-fit: contain;
    margin: 0 auto 8px auto;
    display: block;
    border-radius: 18px;
    padding: 8px;
    transition: box-shadow 0.2s;
}

@media (max-width: 600px) {
    .login-logo img {
        width: 62px;
        height: 62px;
        padding: 4px;
    }
}

.am-login-form form,
.am-auth-form form,
.am-form form {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.am-form input[type="text"],
.am-form input[type="password"],
.am-form input[type="email"] {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #e0e4ec;
    border-radius: 8px;
    font-size: 16px;
    background: #f8fafd;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 18px;
    box-sizing: border-box;
}

.am-form input[type="text"]:focus,
.am-form input[type="password"]:focus,
.am-form input[type="email"]:focus {
    border-color: #506eff;
    background: #f3f6ff;
    outline: none;
    box-shadow: 0 0 0 2px #e9eefd;
}


.am-form input[type="text"]:focus,
.am-form input[type="password"]:focus,
.am-form input[type="email"]:focus {
    border-color: #F27C00;
    background: #fff;
    outline: none;
}

.am-form label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 6px;
}

.am-form input[type="submit"],
.am-form button[type="submit"] {
    color: #fff;
    border: none;
    padding: 13px 0;
    width: 100%;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    margin-top: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(80, 110, 255, 0.08);
    letter-spacing: 0.5px;
    transition: background 0.2s, box-shadow 0.2s;
}

.am-form input[type="submit"]:hover,
.am-form button[type="submit"]:hover {
    box-shadow: 0 4px 16px rgba(80, 110, 255, 0.12);
}


.am-form input[type="submit"]:hover,
        .am-form button[type="submit"]:hover,
        .am-form .am-button:hover,
        #save-profile:hover {
            background-color: #c76a08;
        }

.am-form input[type="submit"]:hover,
.am-form button[type="submit"]:hover {
    background: #a75803;
}

.am-errors,
.am-form .errors,
.am-form .error {
    color: #F27C00;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 14px;
}

.am-signup-link {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
}

.am-signup-link a {
    color: #F27C00;
    text-decoration: underline;
    font-weight: 500;
}

.am-signup-link a:hover {
    color: #F27C00;
}

/* Hide content-card shadow and background in login */
body.login .content-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

@media (max-width: 500px) {
    .am-login-form-wrapper,
.am-sendpass-form-wrapper {
    border: none !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07); /* احتفظ بالظل فقط */
}
    .login-logo img {
        width: 200px;
    }
}
